<template>
  <div>
    <button @click="handleAddClick(1)"> {{ count }} </button>
  </div>
  <div>
    <Child></Child>
  </div>
</template>

<script setup>
import Child from './Child.vue'
import useCount from './use/useCount'
import useTitle from './use/useTitle'

// 操作 count
const { count, handleAddClick } = useCount()
// 操作 title
useTitle(count)

</script>

<style lang="less" scoped>

</style>
